#include"LB.h"
void add(LB** p, int x)
{
	LB* sl = (LB*)malloc(sizeof(LB));
	sl->a = x;
	sl->next = NULL;
	if (*p == NULL)
	{
		*p = sl;
	}
	else
	{
		LB* t=*p;
		while (t->next != NULL)
		{
			t = t->next;
		}
		t->next = sl;
	}
}
void print(LB* p)
{
	while (p != NULL)
	{
		printf("%d->", p->a);
		p = p->next;
	}
	printf("NULL\n");
}